import { createApp } from 'vue'
import App from './App.vue'
import EventBus from './utils/eventbus'
import router from './router'
import store from './store'
import { MessageBox } from '../utils/oldapp/third-lib'
import initConfig from "@utils/oldapp/init-config";

// import { useI18n } from "../config/i18n.js";

const app = createApp(App)

const $bus = new EventBus()
app.provide('$bus', $bus)
// 挂载到this上
app.config.globalProperties.$bus = $bus
app.use(router)
app.use(store)

// app.use(useI18n)
app.use(MessageBox)
app.use(initConfig)

app.mount('#app')
